import request from '@/utils/request'

const root = '/record/manager'

export function startRecording(data) {
  return request({
    url: root + '/start',
    method: 'post',
    data
  })
}

export function stopRecording(data) {
  return request({
    url: root + '/stop',
    method: 'post',
    data
  })
}

export function getRecording(data) {
  return request({
    url: root + '/get',
    method: 'post',
    data
  })
}

export function listRecordings(data) {
  return request({
    url: root + '/list',
    method: 'post',
    data
  })
}

export function deleteRecording(data) {
  return request({
    url: root + '/del',
    method: 'post',
    data
  })
}
